-- GENERATED SPELL FOR [Deathforge Smith] --


function spell0_19756(pUnit, Event) --@Chaos Nova,Self--
pUnit:FullCastSpellOnTarget(36225,pUnit)
pUnit:RegisterEvent('Sorts_19756', 14000, 1)
end

function spell1_19756(pUnit, Event) --@Drill Armor,n/a--
pUnit:FullCastSpellOnTarget(37580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19756', 8000, 1)
end

function Sorts_19756(pUnit, Event)
local choix_sorts_19756 = math.random(0, 1)
if choix_sorts_19756 == 0 then
pUnit:RegisterEvent('spell0_19756', 1, 1)
end
if choix_sorts_19756 == 1 then
pUnit:RegisterEvent('spell1_19756', 1, 1)
end
end

function mob19756_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19756', math.random(1500, 3000), 1)
end

function mob19756_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19756_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19756_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19756, 1, 'mob19756_Action')
RegisterUnitEvent(19756, 2, 'mob19756_Leave')
RegisterUnitEvent(19756, 3, 'mob19756_Kill')
RegisterUnitEvent(19756, 4, 'mob19756_Die')
